package com.tencent.user.constant;

/**
 * 微信登录相关常量
 */

public class WxConstants {
    /**
     * appId
     */
    public static final String APPID = "wxd853562a0548a7d0";

    /**
     * 密钥
     */
    public static final String SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";

    /**
     * 通过code授权码获取token 向认证服务器发请求(appId+secret+code) 返回token + open_id
     */
    public static final String GET_ACK_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";

    /**
     * 第三步 通过token向资源服务器发送请求(token+open_id) 获取用户信息
     */
    public static final String GET_USER_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";
}